<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>

    <style>
        * {
            margin: 0;
            padding: 0;
        }

        .top {
            height: 50px;
            background-color: white;
            box-shadow: 4px 4px 4px #ccc;
            display: flex;
            align-items: center;
        }

        .table{
            margin-top: 20px;
        }

        .data td{
            border: 1px solid #ccc;
            width: 100px;
            height: 50px;
        }
    </style>

</head>


<body>

    <div>
        <div class="top"></div>
        {{each data item}}
        <table class="table" style="width: 100%;border: 1px solid #ccc;">

            <tr class="data"> 

            <td>商品名称:{{item.name}}></td>

            <td>商品图片:
                <img id="preview" src="{{item.img}}" alt="" style="width: 100px;height: 100px;">
            </td>

            <td>商品价格:{{item.price}}</td>
            <td>商品库存:{{item.stock}}</td>
            <td>上架时间: {{item.shelfTime}}</td>

          

            </tr>
        </table>
        
        
        

       

        {{/each}}
    </div>



</body>

<script src="vue.js"></script>
<script src="jquery-3.5.1.js"></script>


</html>